﻿<!DOCTYPE html>
<!--受限空间作业安全许可证管理-->
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

    <style>

        body {
            padding-bottom: 10px;
        }
        .el-dialog__body {
            height: 100% !important;
        }

        .el-dialog.is-fullscreen {
            overflow: hidden !important;
        }
 
        .el-col ,td{
            padding: 10px;
            font-size: 14px;
        }

        .el-form-item {
            margin-bottom: 0px !important;
        }

        .el-input-group__prepend{
            color: #000;
            font-size: 14px;
        }

        .el-input__inner{
            color: #606266!important
        }

        .el-input-group__prepend {
            padding-left: 0
        }

        .el-input-group__prepend,
        .el-input__inner,
        .el-form-item__label {
            color: #000;
            font-size: 14px;
        }

        .el-form-item__label{
            padding-left: 0!important;
        }

        .el-input-group__prepend {
            padding-left: 0
        }
    </style>
</head>
<body>
    
<div id="app" v-cloak>   
        <div style="width:100%;text-align:center ">
            <label style="font-weight:bold">受限空间作业安全许可证</label>
        </div>
        <table style="width:100%">
            <tr>
             

                <td width="100%" style="text-align:right ">{{ConfinedSpaceWorkSafety.ApplicationTime+mark.m}} {{Form.ApplicationTime}}  {{ConfinedSpaceWorkSafety.ApplicationNumber+mark.m}} {{Form.ApplicationNumber}}  </td>
            </tr>
        </table>
        <el-form :model="Form" status-icon style="margin-top:5px;width:100%" class="safeCard">
            <!--<el-row type="flex" justify="end">
        <el-col span="23">CheckInvolvingOtherSpecialOperations
            {{ConfinedSpaceWorkSafety.ApplicationTime+mark.m}} {{Form.ApplicationTime}}   {{ConfinedSpaceWorkSafety.ApplicationNumber+mark.m}} {{Form.ApplicationNumber}}
        </el-col>
    </el-row>-->
            <!--作业单位 属地单位 --> <!--作业区域 作业位置-->   <!--     附管线（设备）打开JSA：-->  <!--承包商 等级-->     <!--危害识别-->
            <table style="border:1px  solid; width:100%" cellpadding="0" cellspacing="0">
                <!--作业区域 属地单位  受限空间内原危险介质名称-->
                <tr style="border:1px  solid;">
                    <td width="10%" rowspan="6" style="text-align:center;border-right:1px solid ;">工作内容</td>
                    <td width="30%" style="border-right:1px solid;border-bottom:1px solid  ">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        <div>{{ConfinedSpaceWorkSafety.TerritorialDepartment+mark.m}}</div>
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.TerritorialDepartment" slot="suffix" :placeholder="ConfinedSpaceWorkSafety.TerritorialDepartment">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in TerritorialDepartment" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                    <td width="30%" style="border-right:1px solid;border-bottom:1px solid  ">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        <div>{{ConfinedSpaceWorkSafety.WorkingArea+mark.m}}</div>
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.WorkingArea" slot="suffix" :placeholder="ConfinedSpaceWorkSafety.WorkingArea">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in WorkingArea" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                    <td width="30%" style="border-bottom:1px solid  " rowspan="2">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input type="text" v-model="Form.RestrictedSpaceName" autocomplete="off" size="mini">
                                    <template slot="prepend">
                                        {{ConfinedSpaceWorkSafety.RestrictedSpaceName+mark.m}}
                                    </template>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                </tr>
                <!-- 作业位置 承包商-->
                <tr>
                    <td width="30%" style="border-bottom:1px solid;border-right:1px solid;">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input type="text" v-model="Form.JobLocation" autocomplete="off" size="mini">
                                    <template slot="prepend">
                                        {{ConfinedSpaceWorkSafety.JobLocation+mark.m}}
                                    </template>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                    <td width="30%" style="border-right:1px solid;border-bottom:1px solid ">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        <div>{{ConfinedSpaceWorkSafety.contractor+mark.m}}</div>
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.contractor" slot="suffix" :placeholder="ConfinedSpaceWorkSafety.contractor">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in contractor" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                </tr>

                <!--作业描述-->
                <tr>
                    <td width="90%" colspan="3" style="border-bottom:1px solid">
                        <el-form-item :label="ConfinedSpaceWorkSafety.WorkContent+mark.m">
                            <el-input type="textarea" style="width:90%;margin-top:3px;border:none" v-model="Form.WorkContent"></el-input>
                        </el-form-item>
                    </td>
                </tr>
                <!--     涉及其他特殊作业-->
                <tr>
                    <td width="90%" colspan="3" style="border-bottom:1px solid">
                        <el-form-item :label="ConfinedSpaceWorkSafety.InvolvingOtherSpecialOperations+mark.m">
                            <el-checkbox-group v-model="Form.InvolvingOtherSpecialOperations" @change="handleCheckedA" style="margin-top:10px">
                                <el-checkbox v-for="city in InvolvingOtherSpecialOperations" :label="city.value" :key="city.key">{{city.value}}</el-checkbox>
                            </el-checkbox-group>
                        </el-form-item>
                    </td>
                </tr>

                <!--是否附安全作业方案 是否附图纸 是否附应急预案-->
                <tr style="border:1px  solid;">
                    <td width="30%" style="border-right:1px solid;border-bottom:1px solid  ">
                        <el-form-item :label="ConfinedSpaceWorkSafety.IsSafeWorkProgram+mark.m" prop="IsSafeWorkProgram" class="inputTextarea">
                            <el-radio-group v-model="Form.IsSafeWorkProgram" style="margin-top:13px">
                                <el-radio v-for="item in IsSafeWorkProgram" :label="item.value" :value="item.key">{{item.value}}</el-radio>
                            </el-radio-group>
                        </el-form-item>
                    </td>
                    <td width="30%" style="border-right:1px solid;border-bottom:1px solid  ">
                        <el-form-item :label="ConfinedSpaceWorkSafety.IsDrawing+mark.m" prop="IsSafeWorkProgram" class="inputTextarea">
                            <el-radio-group v-model="Form.IsDrawing" style="margin-top:13px">
                                <el-radio v-for="item in IsSafeWorkProgram" :label="item.value" :value="item.key">{{item.value}}</el-radio>
                            </el-radio-group>
                        </el-form-item>
                    </td>
                    <td width="30%" style="border-bottom:1px solid  ">
                        <el-form-item :label="ConfinedSpaceWorkSafety.IsWhetherEmergencyPlan+mark.m" prop="IsSafeWorkProgram" class="inputTextarea">
                            <el-radio-group v-model="Form.IsWhetherEmergencyPlan" style="margin-top:13px">
                                <el-radio v-for="item in IsSafeWorkProgram" :label="item.value" :value="item.key">{{item.value}}</el-radio>
                            </el-radio-group>
                        </el-form-item>
                    </td>

                </tr>

                <!--气体检测人 检测要求：-->
                <tr>
                    <td>
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        <div>{{ConfinedSpaceWorkSafety.GasDetector+mark.m}}</div>
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.GasDetector" slot="suffix" :placeholder="HotWorkSafetyLicense.GasDetector">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in Confirmor" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                    <td style="border-right:1px solid;"></td>
                    <td width="30%">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        <div>{{ConfinedSpaceWorkSafety.TestingRequirements+mark.m}}</div>
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.TestingRequirements" slot="suffix" :placeholder="HotWorkSafetyLicense.TestingRequirements">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in TestingRequirements" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                </tr>

            </table>
            <!--作业类型   可能的风险-->
            <table style="border:1px  solid; width:100%;border-top:0px solid" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="10%" style="text-align:center;border-right:1px solid ;text-align:center;border-bottom:1px solid; ">{{ConfinedSpaceWorkSafety.JobType}}</td>

                    <td width="90%" style="border-bottom:1px solid;">
                        <el-form-item>
                            <el-checkbox-group v-model="Form.JobType" @change="handleCheckedB">
                                <el-checkbox v-for="city in JobType" :label="city.value" :key="city.key">{{city.value}}</el-checkbox>
                            </el-checkbox-group>
                        </el-form-item>
                    </td>
                </tr>
                <tr>
                    <td width="10%" style="border-right:1px solid;text-align:center ">{{ConfinedSpaceWorkSafety.PossibleRisk}}</td>
                    <td width="90%" style="">
                        <el-form-item>
                            <el-checkbox-group v-model="Form.PossibleRisk" @change="handleCheckedC">
                                <el-checkbox v-for="city in PossibleRisk" :label="city.value" :key="city.key">{{city.value}}</el-checkbox>
                            </el-checkbox-group>
                        </el-form-item>
                    </td>
                </tr>

            </table>

            <!--安全措施-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24">
                    <el-table :data="Form.HazardIdentification" border  >
                        <el-table-column prop="SafetyMeasures"
                                         :label="HotWorkSafetyLicense.SafetyMeasures">
                        </el-table-column>

                        <el-table-column :label="HotWorkSafetyLicense.Department" width="180px">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.Department" placeholder="请选择">
                                    <el-option v-for="item in TerritorialDepartment" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HotWorkSafetyLicense.Confirmor" width="130px">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.Confirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>



            <!--基于数据库管控要求-->
            <!--<el-row style="border:1px  solid;border-top:0px;  ">
                <el-col span="24">
                    <label>{{ConfinedSpaceWorkSafety.BasedDatabaseManagementRequirements+mark.m}}</label>
                    <a href="javascript:void(0)" v-on:click="RiskInformationBase('tj')">添加</a>
                </el-col>
            </el-row>-->
            <!--基于数据库管控要求数据-->
            <!--<el-row style="border:1px  solid; border-top:0px;    ">
        <el-col span="24" >
            <el-table :data="Form.BasedDatabaseManagementRequirements"
                      border
                      >
                <el-table-column prop="Risk"
                                 :label="EquipmenFacilities.Risk">
                </el-table-column>
                <el-table-column prop="ControlRequirement"
                                 :label="ConfinedSpaceWorkSafety.ControlRequirements"> 
                </el-table-column>

                <el-table-column :label="ConfinedSpaceWorkSafety.ControlDepartment" width="180px">
                    <template slot-scope="scope">
                        <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ControlDepartment" placeholder="请选择">
                            <el-option v-for="item in TerritorialDepartment" :key="item.key" :label="item.value" :value="item.key"></el-option>
                        </el-select>
                    </template>
                </el-table-column>
                <el-table-column :label="ConfinedSpaceWorkSafety.ControlConfirmor" width="130px">
                    <template slot-scope="scope">
                        <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ControlConfirmor" placeholder="请选择">
                            <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                        </el-select>
                    </template>
                </el-table-column>
            </el-table>
        </el-col>
    </el-row>-->
            <!--受影响相关方-->
            <el-row style="border:1px  solid;border-top:0px;  text-align: left  ">
                <el-col span="24">
                    <label>{{HotWorkSafetyLicense.AffectedParties+mark.m}}</label><a href="javascript:void(0)" @click="AffectedPartiesInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--受影响相关方数据-->
            <el-row style="border:1px  solid; border-top:0px;  ">
                <el-col span="24" >
                    <el-table :data="Form.AffectedParties" border >
                        <el-table-column :label="HotWorkSafetyLicense.AffectedPartiesUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.AffectedPartiesUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HotWorkSafetyLicense.AffectedPartiesConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.AffectedPartiesConfirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.AffectedPartiesUnit)"
                                           type="text"
                                           size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>


            <!--作业人：-->
            <el-row style="border:1px  solid;border-top:0px;  text-align: left  ">
                <el-col span="24">
                    <label>{{HighWorkSafetyPermit.Operator+mark.m}}</label><a href="javascript:void(0)" @click="OperatorInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--作业人数据-->
            <el-row style="border:1px  solid; border-top:0px;  ">
                <el-col span="24" >
                    <el-table :data="Form.Operator" border >
                        <el-table-column :label="HighWorkSafetyPermit.OperatorUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.OperatorUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HighWorkSafetyPermit.OperatorConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.OperatorConfirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.Operator)"
                                           type="text"
                                           size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <!--监护人-->
            <el-row style="border:1px  solid;border-top:0px;  text-align: left ">
                <el-col span="24">
                    <label>{{ConfinedSpaceWorkSafety.Guardian+mark.m}}</label>     <a href="javascript:void(0)" @click="GuardianInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--监护人数据-->
            <el-row style="border:1px  solid; border-top:0px;   ">
                <el-col span="24" >
                    <el-table :data="Form.Guardian"  border >
                        <el-table-column :label="ConfinedSpaceWorkSafety.GuardianUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.GuardianUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="ConfinedSpaceWorkSafety.GuardianConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.GuardianConfirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.Guardian)"
                                           type="text"
                                           size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <!--审批人-->
            <el-row style="border:1px  solid;border-top:0px;  text-align: left ">
                <el-col span="24">
                    <label>{{HotWorkSafetyLicense.Approver+mark.m}}</label><a href="javascript:void(0)" @click="ApproverInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--审批人数据-->
            <el-row style="border:1px  solid; border-top:0px;   ">
                <el-col span="24" >
                    <el-table :data="Form.Approver" border >
                        <el-table-column :label="HotWorkSafetyLicense.ApproverUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ApproverUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HotWorkSafetyLicense.ApproverConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ApproverConfirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.Approver)"
                                           type="text"
                                           size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <!--相关表格-->
            <el-row style="border:1px  solid;border-top:0px; text-align: left ">
                <el-col span="24">
                    <label>{{ConfinedSpaceWorkSafety.RelatedForm+mark.m}}</label>
                </el-col>
            </el-row>

            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" >
                    <el-table :data="Form.RelatedForm" border >
                        <el-table-column prop="RelatedFormName" :label="ConfinedSpaceWorkSafety.RelatedFormName">

                        </el-table-column>

                        <el-table-column prop="RelatedFormNo" :label="ConfinedSpaceWorkSafety.RelatedFormNo">

                        </el-table-column>
                        <el-table-column width="53" prop="update" :label="col.btnUpdate" fixed="right">
                            <template slot-scope="scope">
                                <button type="button" class="elst-bt-xg" @click=Bianji('xg',scope.row.id)>
                                    <i class="el-icon-edit"></i>
                                </button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <el-row>
                <el-form-item style="text-align:center; padding-top:5px">
                    <el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnSave}}</el-button>
                    <el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnCommit}}</el-button>
                </el-form-item>
            </el-row>
        </el-form>
        <el-dialog title="" :visible.sync="ListItem.dialogVisible" width="90%" height="95%" top="10vh" fullscreen="true">
            <iframe ref="iframe" :src="ListItem.InputUrl" style="height:95%;width:100%" frameborder="0"></iframe>
        </el-dialog>
    </div>
    <script type="text/javascript">
        app = new Vue({
            el: '#app',
            data: {
                id: '',
                Form: {
                    id: guidEmpty,
                    ApplicationNumber: '',
                    ApplicationTime:'',
                    applicant: '',
                    WorkContent: '',
                    TerritorialDepartment: '',
                    CurrentJob:'',
                    WorkingArea:'',
                    JobLocation:'',
                    contractor:'',
                    RestrictedSpaceName:'',
                    WorkContent: '',
                    InvolvingOtherSpecialOperations: [],
                    IsSafeWorkProgram:'',
                    IsDrawing: '',
                    IsWhetherEmergencyPlan:'',
                    GasDetector:'',
                    TestingRequirements:'',
                    JobType:[],
                    PossibleRisk:[],
                    SafetyMeasures:'',
                    Department:'',
                    Confirmor: '',
                    HazardIdentification: '',
                    BasedDatabaseManagementRequirements: '',
                    ControlRequirements:'',
                    ControlDepartment:'',
                    ControlConfirmor: '',
                    AffectedParties: '',
                    AffectedPartiesUnit:'',
                    AffectedPartiesConfirmor: '',
                    Approver: '',
                    ApproverUnit: '',
                    ApproverConfirmor: '',
                    Guardian: '',
                    GuardianUnit:'',
                    GuardianConfirmor:'',
                    Operator:'',
                    OperatorUnit:'',
                    OperatorConfirmor:'',
                    RelatedForm: '',
                    RelatedFormName: '',
                    RelatedFormNo: '',
                    JobStartTime: '',
                    JobEndTime: '',
                },
                TerritorialDepartment: [],
                OperatingUnit: [],
                InvolvingOtherSpecialOperations: [],
                contractor: [],
                Confirmor: [],
                IsSafeWorkProgram: {},
                WorkingArea: {},
                PossibleRisk: [],
                Isolation: [],
                JobType: [],
                TestingRequirements: [],
                ListItem: ListItem,
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                handleChange: function (value) {
                    console.log(value);
                },
                handleSelect: function (ev) {
                    console.log(ev);
                },
                handleCheckedA: function (value) {

                },
                handleCheckedB: function (value) {

                },
                handleCheckedC: function (value) {
                  
                },
                deleteRow: function (index, rows) {
                    rows.splice(index, 1);
                },
                getData: function () {
                    getDataAdd(this, '/api/ConfinedSpaceWorkSafety/get?id=' + this.id);
                },
                Bianji: function (val, id) { DialogShow(this, val, "../GeneralLiftingWorkSafety/RelatedTableList.html", id); },

                AffectedPartiesInput: function (val, id) { DialogShow(this, val, "../HotWorkSafetyLicense/AffectedPartiesInput.html", id); },
                //作业人：
                OperatorInput: function (val, id) { DialogShow(this, val, "../HighWorkSafetyPermit/OperatorInput.html", id); },
                //监护人
                GuardianInput: function (val, id) { DialogShow(this, val, "../HighWorkSafetyPermit/GuardianInput.html", id); },
                //审批人
                ApproverInput: function (val, id) { DialogShow(this, val, "../GeneralLiftingWorkSafety/ApproverInput.html", id); },
                RiskInformationBase: function (val, id) {
                    DialogShow(this, val, "../GeneralLiftingWorkSafety/RiskInformationBase.html", id);
                },
                //提交数据
                onSubmitForm: function (formName) {
                    var mythis = this;
                    console.log(mythis)
                    //this.$refs[formName].validate(function (valid) {
                    //    //验证通过
                    //    if (valid) {
                    onSubmitForm(this, '/api/ConfinedSpaceWorkSafety/Save', mythis.Form);
                    //} else {
                    //    //验证失败
                    //    return false;
                    //}
                    //});
                },
            },
            mounted: function () {
                var list = getDicDataArray(['14', '134', '12', '09', '08', '50', '135', '128', '121', '120','97']);
                this.OperatingUnit = getDicDatafromArray('08', list);//
                this.TerritorialDepartment = getDicDatafromArray('14', list);//
                this.WorkingArea = getDicDatafromArray('97', list);//
                this.InvolvingOtherSpecialOperations = getDicDatafromArray('134', list);//
                this.contractor = getDicDatafromArray('12', list);//
                this.Confirmor = getDicDatafromArray("09", list);//
                this.IsSafeWorkProgram = getDicDatafromArray("50", list);//
                this.PossibleRisk = getDicDatafromArray("135", list);//
                this.Isolation = getDicDatafromArray("128", list);//
                this.JobType = getDicDatafromArray("121", list);//
                this.TestingRequirements = getDicDatafromArray("120", list);//
                this.id = getUrlParam("id");
                this.getData();
            
                //this.BasedDatabaseManagementRequirements = this.Form.BasedDatabaseManagementRequirements;
            }
        });
    </script>
</body>
</html>